import React, { Component } from 'react'
import bus from './bus'
export default class Brother1 extends Component {
  render () {
    return (
      <div>
        Brother1
        <button
          onClick={() => {
            bus.emit('myevent', '麦当劳')
          }}
        >
          传值给兄弟组件2
        </button>
        <hr />
      </div>
    )
  }
}
